import 'package:freezed_annotation/freezed_annotation.dart';

part 'media_list.freezed.dart';
part 'media_list.g.dart';

@freezed
class MediaList with _$MediaList {
  factory MediaList({
    String? mediaId,
    String? userId,
    String? mediaType,
    String? mediaPath,
    String? thumbUrl,
    String? middleThumbUrl,
    String? mediaUrl,
    int? sort,
    int? coins,
  }) = _MediaList;

  factory MediaList.fromJson(Map<String, dynamic> json) =>
      _$MediaListFromJson(json);
}
